home *** CD-ROM | disk | FTP | other *** search
- For breakout, try the GetPoint or whatever to test the colorof the area
- next to the ball. Then make it so each cube has a border the same color
- as the background screen. Floodfill the cube that was hit with the
- background color, and it disapears! Then invert the velocity of the ball.
- When checking the color, different colors could do different things, and
- other special data could be kept in a 2d array, corresponding to the width
- and height of the cubes, ie array[2][5] with 16 by 8 pixel cubes would be
- at screen location (2*16)+0 to 16, (5*8)+0 to 8. only check about 8 areas
- around the ball with getpoint, as it will slow the game down! Or, if you
- are using the Turbo ext, use the fast zones.
- -Jedon
-
-
-